<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">  
    <h:head>
        <script type="text/javascript" src="../resources/javascript/jquery.js"></script> 
    </h:head>
    <h:body>
        <style type="text/css">       
        </style>
        <ui:composition>
            <p:growl id="messages"/> 
            <h:form>
                <p:graphicImage url="/images/header.png" style="width: 100%;height: 100px;"/>                
                <p:menubar style="background-color: #00A3EF;height: 25px;" styleClass="ui-menubar">
                    <p:menuitem value="Trang chủ" icon="ui-icon ui-icon-home" action="#{pageController.backHome()}" ajax="false"/>                   
                    <c:forEach var="listMenu" items="${loginBean.menu}">
                        <p:submenu label="#{listMenu.name}" > 
                            <c:forEach var="childMenu" items="${listMenu.listChild}"> 
                                <p:menuitem value="#{childMenu.name}" url="/tamnhat/#{childMenu.url}"></p:menuitem>                                 
                            </c:forEach>
                        </p:submenu>
                    </c:forEach>
                    <p:submenu label="Xin chào #{loginBean.strUserName}!" style="float: right;">
                        <p:menuitem value="Đổi mật khẩu" action="#{pageController.changePass()}" ajax="false"/>
                        <p:menuitem value="Đăng xuất" action="#{loginBean.doLogout()}" ajax="false"/>
                    </p:submenu>
                </p:menubar>
            </h:form>
        </ui:composition>
    </h:body>
</html>

